﻿@model AutoPartsSearch.Web.ViewModels.AccountModels.ChangePassword
@{
    ViewBag.Title = @T("Изменить пароль").ToHtmlString();
}
<h2 class="title">@T("Изменить пароль")</h2>
<div class="container-main ui-corner-all padtop5">
    @using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post))
    {
        <div id="errors" title="@T("Пожалуйста, исправьте ошибки и попробуйте еще раз.")" style="display: none;">
            @Html.ValidationSummary(false)
        </div>
        <fieldset>
            <div class="container-sub">
                <div class="container-header hght18px mrgbot3">
                    <span class="headerAdditionalInfo"><span class="red">*</span> - @T("обязательное поле")</span>
                </div>
                <table class="table-form">
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.OldPassword)
                        </td>
                        <td>
                            @Html.EditorFor(model => model.OldPassword)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.NewPassword)
                        </td>
                        <td>
                            @Html.EditorFor(model => model.NewPassword)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.ConfirmPassword)
                        </td>
                        <td>
                            @Html.EditorFor(x => x.ConfirmPassword)
                        </td>
                    </tr>
                </table>
            </div>
            <div class="container-sub mrgtop3 hght31px">
                <input class="button fr" type="submit" value="@T("Сохранить")" />
            </div>
        </fieldset>
    }
</div>
